-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix constraints on from_json() for strings (fixes #3171, #3267, #3312, #3384) #3427
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
falbrechtskirchinger
changed the title
Further constrain from_json() for strings (fixes #3171, #3312, #3384, maybe #3267)
Further constrain from_json() for strings (fixes #3171, #3267, #3312, #3384)
Apr 6, 2022
falbrechtskirchinger
force-pushed
the
fix-from_json
branch
from
April 6, 2022 14:11
67cedc0
to
debcb29
Compare
gregmarr
reviewed
Apr 6, 2022
Constrain from_json() overload for StringType to not accept json_ref and require it to be assignable, instead of constructible, from basic_json::string_t. Re-enable C++14 tests on Clang <4.0. Fixes nlohmann#3171. Fixes nlohmann#3267. Fixes nlohmann#3312. Fixes nlohmann#3384.
falbrechtskirchinger
changed the title
Further constrain from_json() for strings (fixes #3171, #3267, #3312, #3384)
Fix constraints on from_json() for strings (fixes #3171, #3267, #3312, #3384)
Apr 7, 2022
falbrechtskirchinger
force-pushed
the
fix-from_json
branch
from
April 7, 2022 16:37
df29bdd
to
ebab61e
Compare
nlohmann
approved these changes
Apr 8, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Thanks a lot!!! |
This was referenced Jul 28, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Constrain
from_json()
overload forStringType
to not acceptjson_ref
and require it to be assignable, instead of constructible, frombasic_json::string_t
.Re-enable C++14 tests on Clang <4.0.
Fixes #3171.
Fixes #3267.
Fixes #3312.
Fixes #3384.